package com.hyts;

import org.avaje.agentloader.AgentLoader;

/**
 * Hello world!
 *
 */
public class App


{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }

    /**
     * [![Maven Central : avaje-agentloader](https://maven-badges.herokuapp.com/
     * maven-central/org.avaje/avaje-agentloader/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.avaje/avaje-agentloader)
     */

    //Provides the ability to load java agents to a running java process
    public void someApplicationBootupMethod() {
        // Load the agent into the running JVM process
        // preferred method:
        AgentLoader.loadAgentByMainClass("io.ebean.enhance.Transformer", "debug=1");
        // No longer recommended (does not work reliable on jar-in-jar)
        AgentLoader.loadAgentFromClasspath("ebean-agent","debug=1");
    }
}
